package com.cndw.kungfu.model.player.domain;

import java.util.Comparator;

import com.cndw.kungfu.vo.FavoriteHFVO;

public class SortFavorite implements Comparator<FavoriteHFVO> {

	@Override
	public int compare(FavoriteHFVO arg0, FavoriteHFVO arg1) {
		if (arg0.act != arg1.act) {
			if (arg1.act) {
				return -1;
			}else {
				return 1;
			}
		}
		return arg1.id - arg0.id;
	}

}
